package com.android.uit;

import android.graphics.drawable.Drawable;

public class IconfigText {
	private String mText="";
	private Drawable mIcon;
	private boolean mSelectable= true;
	public IconfigText(String text, Drawable bullet)
	{
		mText=text;
		mIcon=bullet;
	}
	  public boolean isSelectable() {
          return mSelectable;
  }
 
  public void setSelectable(boolean selectable) {
          mSelectable = selectable;
  }
 
  public String getText() {
          return mText;
  }
 
  public void setText(String text) {
          mText = text;
  }
 
  public void setIcon(Drawable icon) {
          mIcon = icon;
  }
 
  public Drawable getIcon() {
          return mIcon;
  }

  /** Make IconifiedText comparable by its name */
  public int compareTo(IconfigText other) {
          if(this.mText != null)
                  return this.mText.compareTo(other.getText());
          else
                  throw new IllegalArgumentException();
  }
}

